home *** CD-ROM | disk | FTP | other *** search
- 1 rem laser - demo- und steuer-programm
- 2 rem von nikolaus heusler 8.91
- 3 rem zwengauerweg 18, 8000 muenchen 71
- 4 :
- 10 ifpeek(49155)<>3thenload"laser.code",8,8
- 20 sys49152
- 100 print"[147]laser - demo- und steuerprogramm
- 110 [153]"steuerung: (+) motor 1 schneller
- 112 print" (-) motor 1 langsamer
- 114 [153]" (1) motor 1 an/aus
- 120 print" (>) motor 2 schneller
- 122 [153]" (<) motor 2 langsamer
- 124 print" (2) motor 2 an/aus
- 126 [153]" (_) motor 2 vor/rueck
- 128 print" ([) bremse hoch
- 129 [153]" (]) bremse runter
- 130 print"werden die tasten mit (shift) betaetigt,
- 132 [153]"onso erfolgt die aenderung in groesseren
- 134 print"stufen.
- 136 [153]"tototototototototototototototototototototototototototototototototototototototo
- 190 m1=85:m2=168:br=60:s1=1:s2=1:r=1
- 200 print"motor 1: geschwindigkeit = ";
- 202 ifs1=0thenprint"aus ":goto210
- 204 printm1"[157] "
- 210 print"motor 2: geschwindigkeit =";
- 212 ifs2=0thenprint" aus ":goto220
- 214 ifr=1thenprint" +";:goto216
- 215 print" -";
- 216 printm2"[157] "
- 220 print"bremse: = "br"[157] "
- 230 poke6,br:poke2,s1:poke3,s2*r:poke4,m1:poke5,m2
- 300 geta$:poke198,.
- 310 ifa$="+"thenm1=m1+1:ifm1>255thenm1=255
- 312 ifa$="[219]"thenm1=m1+16:ifm1>255thenm1=255
- 314 ifa$="-"thenm1=m1-1:ifm1<10thenm1=10
- 316 ifa$="[221]"thenm1=m1-16:ifm1<10thenm1=10
- 320 ifa$="."thenm2=m2+1:ifm2>255thenm2=255
- 322 ifa$=">"thenm2=m2+16:ifm2>255thenm2=255
- 324 ifa$=","thenm2=m2-1:ifm2<10thenm2=10
- 326 ifa$="<"thenm2=m2-16:ifm2<10thenm2=10
- 330 ifa$="1"thens1=1-s1
- 332 ifa$="2"thens2=1-s2
- 334 ifa$="_"thenr=256-r
- 340 ifa$=":"thenbr=br+1:ifbr>255thenbr=255
- 342 ifa$="["thenbr=br+16:ifbr>255thenbr=255
- 344 ifa$=";"thenbr=br-1:ifbr<1thenbr=1
- 346 ifa$="]"thenbr=br-16:ifbr<1thenbr=1
- 390 goto200
-